{include file="/common/_meta"}
</head>
<body>
{include file="/common/top"}

<div class="main-container container-fluid">
    <div class="page-container">
        <!-- Page Sidebar -->
       {include file="/common/list"}
        <!-- Page Content -->
        <div class="page-content">

            <!-- Page Breadcrumb -->
            <div class="page-breadcrumbs">
                <ul class="breadcrumb">
                   <li>
                        <a href="#">系统</a>
                    </li>
                    <li>
                        <a href="{:url('goods/lst')}">商品类型管理</a>
                    </li>
                </ul>
            </div>
            <!-- /Page Breadcrumb -->

            <!-- Page Body -->
            <div class="page-body">
                <button type="button" tooltip="添加商品类型" class="btn btn-sm btn-azure btn-addon" onClick="javascript:window.location.href = '{:url('goods/add')}'"> <i class="fa fa-plus"></i> Add
                </button>
                <button type="button" tooltip="添加商品类型" class="btn btn-sm btn-azure btn-addon" onClick="javascript:window.location.href = '{:url('goods/prints')}'"> <i class="fa fa-print"></i>  打印
                </button>

                <div class="row">
                    <div class="col-lg-12 col-sm-12 col-xs-12">
                        <div class="widget">
                            <div class="widget-body">
                                <div class="flip-scroll">
                                    <table class="table table-bordered table-hover">
                                        <thead>
                                            <tr>
                                                <th class="text-center" width="4%">ID</th>
                                                <th class="text-center" width="10%">属性名称</th>
                                                <th class="text-center">商品编号</th>
                                                <th class="text-center" width="10%">缩略图</th>
                                                <th class="text-center" width="6%">市场价</th>
                                                <th class="text-center" width="6%">本店价</th>
                                                <th class="text-center" width="6%">上架</th>
                                                <th class="text-center" width="7%">所属栏目</th>
                                                <th class="text-center" width="7%">所属品牌</th>
                                                <th class="text-center" width="7%">所属类型</th>
                                                <th class="text-center">重量</th>
                                                <th class="text-center" width="4%">单位</th>
                                                <th class="text-center" width="4%">库存量</th>
                                                <th class="text-center" width="22%">操作</th>
                                                
                                            </tr>
                                        </thead>
                                        {volist name="goodslist" id="gs"}
                                        <tbody>
                                            <tr>
                                                <td align="center">{$gs.gs_id}</td>
                                                <td>{$gs.gs_name|cut_str=###,3}</td>
                                                <td>{$gs.gs_code}</td>
                                                <td align="center">
                                                {if condition="$gs['gs_img'] neq ''"}<img src="__UPLOADS__/{$gs.gs_img}" height="30">{else /}无图片{/if}
                                                </td>
                                                <td>{$gs.gs_marktep}</td>
                                                <td>{$gs.gs_shopp}</td>
                                                <td>{if condition="$gs['gs_onsale'] eq 1"}上架{else /}已下架{/if}</td>
                                                <td>{$gs.shopcate_name}</td>
                                                <td>{$gs.brand_name}</td>
                                                <td>{$gs.type_name}</td>
                                                <td>{$gs.gs_weight}</td>
                                                <td>{$gs.gs_unit}</td>
                                                <td>{if condition="$gs['gn']"}{$gs.gn}{else/}0{/if}</td>
                                                <td align="center">
                                                    <a href="{:url('goods/product',array('gs_id'=>$gs['gs_id']))}" class="btn btn-warning btn-sm shiny">
                                                        <i class="fa fa-check-square-o"></i> 库存量
                                                    </a>
                                                    <a href="{:url('edit',array('gs_id'=>$gs['gs_id']))}" class="btn btn-primary btn-sm shiny">
                                                        <i class="fa fa-edit"></i> 编辑
                                                    </a>
                                                    <a href="#" onClick="warning('确实要删除吗', '{:url('del',array('gs_id'=>$gs['gs_id']))}')" class="btn btn-danger btn-sm shiny">
                                                        <i class="fa fa-trash-o"></i> 删除
                                                    </a>
                                                </td>
                                            </tr>
                                        </tbody>
                                        {/volist}
                                    </table>
                                </div>
                                <div>{$goodslist->render()}</div>
                            </div>
                        </div>
                    </div>
                </div>

            </div>
            <!-- /Page Body -->
        </div>
        <!-- /Page Content -->
	</div>	
</div>

{include file="common/_footer"}
</body>
</html>